//
//  PAContactViewController.m
//  GZTest
//
//  Created by Gavin Zhang on 7/16/13.
//  Copyright (c) 2013 Gavin Zhang. All rights reserved.
//

#import "PAContactViewController.h"
#import "PAContactView.h"

@interface PAContactViewController ()
@property(nonatomic, strong)NSMutableArray          *contacts;

@property(nonatomic, strong)UITableView             *contactTAB;
@property(nonatomic, strong)UISearchBar             *searchB;
@end

@implementation PAContactViewController
@synthesize contacts            = _contacts;

@synthesize contactTAB          = _contactTAB;


- (id)init
{
    self = [super init];
    if (self) {
        self.contacts = [[NSMutableArray alloc] init];
    }
    return self;
}
- (void)viewDidLoad
{
    [super viewDidLoad];
	
    UIImageView *titleBarBgIV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];
    titleBarBgIV.backgroundColor = [UIColor grayColor];
    [self.view addSubview:titleBarBgIV];
    UISearchBar *searchB = [[UISearchBar alloc] initWithFrame:CGRectMake(20, 60, 280, 36)];
    [self.view addSubview:searchB];
    CGRect rec = RECT_PHONE;
    self.contactTAB = [[UITableView alloc] initWithFrame:CGRectMake(0, 110, 320, rec.size.height-110)];
    self.contactTAB.backgroundColor = [UIColor grayColor];
    [self.view addSubview:self.contactTAB];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - AddressBookHelperDelegate
- (void)addressBookHelper:(AddressBookHelper *)helper finishedLoading:(NSArray *)contacts
{
}
@end
